<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" CodeFile="Day.aspx.cs"
    Inherits="Scheduler_Day" Title="Day View (Scheduler) | DayPilot Pro Demo" %>

<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%">
        <div style="float: left; width: 150px">
            <DayPilot:DayPilotNavigator 
                ID="DayPilotNavigator1" 
                runat="server" 
                BoundDayPilotID="DayPilotScheduler1"
                CssClassPrefix="navigator_silver_" 
                SelectMode="Day" 
                ShowMonths="3" 
                DataEndField="end"
                DataStartField="start" 
                VisibleRangeChangedHandling="CallBack" 
                OnVisibleRangeChanged="DayPilotNavigator1_VisibleRangeChanged" />
        </div>
        <div style="margin-left: 150px; min-height: 500px">
            <DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" Days="1" StartDate="2010-01-01"
                DataStartField="start" DataEndField="end" DataTextField="name" DataValueField="id"
                HeaderFontSize="8pt" HeaderHeight="17" DataResourceField="column" EventHeight="40"
                CellDuration="15" CellGroupBy="Hour" TimeRangeSelectedHandling="JavaScript"
                EventMoveHandling="CallBack" EventMoveJavaScript="alert('Event with id ' + e.value() + ' was moved.' + newStart.toString());"
                EventResizeHandling="CallBack" EventResizeJavaScript="alert('Event with id ' + e.value() + ' was resized.' + newStart + ' ' + newEnd.toString() );"
                OnEventMove="DayPilotScheduler1_EventMove" OnEventResize="DayPilotScheduler1_EventResize"
                OnBeforeTimeHeaderRender="DayPilotScheduler1_BeforeTimeHeaderRender" ClientObjectName="dps1"
                Width="100%" OnBeforeResHeaderRender="DayPilotScheduler1_BeforeResHeaderRender"
                OnCommand="DayPilotScheduler1_Command"
                
                CssClassPrefix="scheduler_silver_"
                HourNameBackColor="#F0F0F0"
                
                CellWidth="40" 
                

                >
                <Resources>
                    <DayPilot:Resource Name="Room A" Value="A" />
                    <DayPilot:Resource Name="Room B" Value="B" />
                    <DayPilot:Resource Name="Room C" Value="C" />
                    <DayPilot:Resource Name="Room D" Value="D" />
                    <DayPilot:Resource Name="Room E" Value="E" />
                    <DayPilot:Resource Name="Room F" Value="F" />
                    <DayPilot:Resource Name="Room G" Value="G" />
                    <DayPilot:Resource Name="Room H" Value="H" />
                </Resources>
            </DayPilot:DayPilotScheduler>
        </div>
    </div>
</asp:Content>
